I cant figure out my PHP problem. Can anyone with PHP codes? [closed]

Posted by Jeffery on Server Fault See other posts from Server Fault or by Jeffery
Published on 2010-12-23T00:32:57Z Indexed on 2010/12/23 0:56 UTC
Read the original article Hit count: 231

Filed under:
|

when I click the submit button it gives me an error page. Here is the site http://nealconstruction.com/estimate.html

$emailSubject = 'Estimate'
$webMaster = '[email protected]'

/* Gathering Info */

$emailField = $_POST ['email']; $nameField = $_POST ['name']; $phoneField = $_POST ['phone']; $typeField = $_POST ['type']; $locationField = $_POST ['location']; $infoField = $_POST ['info']; $contactField = $_POST ['contact'];

$body = <<<EOD




Email: $email
Name: $name
Phone Number: $phone
Type Of Job: $type
Location: $location
Additional Info: $info
How to Contact: $contact
EOD;

$headers = "From: $email\r\n"; $headers .= "Content-Type: text/html\r\n"; $success = mail($webMaster; $emailSubject; $body; $headers);

/* Results rendered as html */

$theResults = << JakesWorks - travel made easy-Homepage

Thank you for your information! We will contact you very soon!

EOD;

echo "$theResults";

?>

© Server Fault or respective owner

Related posts about php

Related posts about website